/*
 * Copyright (C) 2009 Ionut Dediu <deionut@yahoo.com>
 *
 * Licensed under the GNU General Public License Version 2
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

// SmartCamViewFinderContainer.h


#ifndef __SMARTCAM_VIEW_FINDER_CONTAINER_H__
#define __SMARTCAM_VIEW_FINDER_CONTAINER_H__

#include <coecntrl.h>

class CSmartCamAppUi;

class CSmartCamViewFinderContainer : public CCoeControl
	{
	public:
		static CSmartCamViewFinderContainer* NewL(const TRect& aRect);
		static CSmartCamViewFinderContainer* NewLC(const TRect& aRect);
		virtual ~CSmartCamViewFinderContainer();
		// Functions from base classes:
		TInt CountComponentControls() const;
		CCoeControl* ComponentControl(TInt aIndex) const;


	private:
		// Constructors:
		void ConstructL(const TRect& aRect);
		CSmartCamViewFinderContainer();
        // From CCoeControl:
        void Draw(const TRect& aRect) const;
        TKeyResponse OfferKeyEventL(const TKeyEvent& aKeyEvent, TEventCode aType);

		// Data:
		CSmartCamAppUi* iSmartCamAppUi;
	};

#endif//__SMARTCAM_VIEW_FINDER_CONTAINER_H__
